//
//  CTVRootChannel.m
//  Channltv
//
//  Created by Bruno Keymolen on 06/09/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import "CTVRootChannel.h"


@implementation CTVRootChannel

-(id)init{
	[super init];
	
	m_channels = [[NSMutableDictionary alloc] init];
	m_name = @"Undefined";
	
	return self;
}

-(void)dealloc{
	if(m_iconUrlString){
		[m_iconUrlString release];
	}
	if(m_name){
		[m_name release];
	}
	if(m_rootChannelID != nil){
		[m_rootChannelID release];
	}
	
	[m_channels release];
	[super dealloc];
}

-(void)setIconUrlString:(NSString*)urlString{
	if(m_iconUrlString)
		[m_iconUrlString release];
	[urlString retain];
	m_iconUrlString = urlString;
}

-(NSString*)iconUrlString{
	return m_iconUrlString;
}

-(void)setName:(NSString*)name{
	if(m_name)
		[m_name release];
	[name retain];
	m_name = name;
}

-(NSString*)name{
	return m_name;
}

-(NSMutableDictionary*)channels{
	return m_channels;
}

-(NSString*)rootChannelID{
	return m_rootChannelID;
}

-(void)setRootChannelID:(NSString*)channelID{
	if(m_rootChannelID != nil){
		[m_rootChannelID release];
	}
	m_rootChannelID = channelID;
	[m_rootChannelID retain];
}




@end

